package jrain.fw.sql.parser.expr;

import java.util.ArrayList;
import java.util.List;

public class RootExpression extends SqlExpression {

	private List<SqlExpression> chilrens = new ArrayList<SqlExpression>();

	@Override
	public String calcSql() {
		StringBuilder sb = new StringBuilder();
		for (SqlExpression expression : chilrens) {
			sb.append(expression.calcSql());
		}
		return sb.toString();
	}

	public void addExpression(SqlExpression expression) {
		chilrens.add(expression);
	}
	
	public List<SqlExpression> getChilrens() {
		return chilrens;
	}
	
	

}
